package com.adcc.loadsheet.movingdata.congifuration;

import com.google.common.base.Strings;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Created by AN on 2020-05-15.
 */
@Configuration
public class AppConfig {

    // 数据保留时间（天）
    @Value("${keepDays}")
    private int keepDays;

    public int getKeepDays() {
        if(keepDays<=0){
            keepDays=400;
        }
        return keepDays;
    }
}
